
class card {
    public static String[] allSuit={"Clubs", "Diamonds", "Hearts", "Spades"};
    public static String[] allHigh={"Ace","2","3","4","5","6","7","8","9","10","Jack","Queen","King"};

    public String suit;
    public String high;

    private card(String suit, String high) {
        this.suit=suit;
        this.high=high;
    }

    public String toString() {
        return "The card you picked is "+this.high+" of "+this.suit;
    }

    private static int randInt(int max) {
        return (int)(Math.random()*max);
    }

    public static card random() {
        String suit=allSuit[randInt(allSuit.length-1)];
        String high=allHigh[randInt(allHigh.length-1)];
        return new card(suit,high);
    }
}

class cardTest {
    public static void main(String[] args) {
        var c=card.random();
        System.out.println(c);
    }
}